package com.crm.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
  
@Data // Lombok注解，自动生成getter、setter等方法
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "课程查询DTO")  
public class CourseQueryDTO {  
  
    @ApiModelProperty(value = "页码", example = "1")  
    private Integer pageNum;  
  
    @ApiModelProperty(value = "每页显示条数", example = "10")  
    private Integer pageSize;  
  
    @ApiModelProperty(value = "课程代码", example = "3vssua42")  
    private String code;  
  
    @ApiModelProperty(value = "课程名称", example = "UI课程一")  
    private String name;  
  
    @ApiModelProperty(value = "适用人群（例如：'1'为成人，'0'为学生等）", example = "1")  
    private String applicablePerson;  
  
    @ApiModelProperty(value = "开始创建时间", example = "2021-01-01T00:00:00")
    @DateTimeFormat
    private Date beginCreateTime;
  
    @ApiModelProperty(value = "结束创建时间", example = "2023-01-01T23:59:59")
    @DateTimeFormat
    private Date endCreateTime;
  
    @ApiModelProperty(value = "学科或分类", example = "9")  
    private String subject;  
  
    // 如果需要其他查询参数，可以在这里继续添加  
}